.g-core-image-upload-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.g-core-image-upload-form {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  opacity: 0;
}

.g-core-image-upload-container {
  position: absolute;
  background: #111;
  z-index: 900;
}

.g-core-image-upload-modal {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border: 1px solid #ccc;
  z-index: 899;
}

.dropped {
  border: 4px solid #ea6153;
}

.g-core-image-corp-container {
  z-index: 1900;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, .9);
  color: #f1f1f1;
}

.g-core-image-corp-container .image-aside {
  overflow: hidden;
  position: absolute;
  right: 30px;
  left: 30px;
  top: 60px;
  bottom: 20px;
  text-align: center;
}

.g-core-image-corp-container .image-aside img {
  max-width: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.g-core-image-corp-container .info-aside {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  padding-left: 10px;
  padding-right: 10px;
  background: #fefefe;
  color: #777;
}

.g-core-image-corp-container .info-aside .image-corp-preview {
  position: relative;
  overflow: hidden;
  text-align: center;
  border: 2px solid #ccc;
}

.g-core-image-corp-container .info-aside .image-corp-preview.circled {
  border-radius: 160px;
}

.g-core-image-corp-container .info-aside .image-corp-preview img {
  width: 100%;
}


.g-core-image-corp-container .btn-groups {
  text-align: right;
  margin: 5px 0 0;
}

.g-core-image-corp-container .btn {
  display: inline-block;
  padding: 0 15px;
  height: 32px;
  margin-left: 15px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  font-size: 13px;
  color: #222;
  line-height: 32px;
  transition: all .1s ease-in;
}

.g-core-image-corp-container .btn:hover {
  border: 1px solid #777;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.g-core-image-corp-container .btn:active,
{
  background: #ddd;
}

.g-core-image-corp-container .btn:disabled {
  background: #eee !important;
  border-color: #ccc;
  cursor: not-allowed;
}

.g-core-image-corp-container .btn-upload {
  background: #2d2d2d;
  border-color: #3d3d3d;
  color: #fff;
}

.g-core-image-corp-container .btn-upload:hover {
  background: #222;
  border-color: #222;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
}

.g-core-image-corp-container .g-crop-image-box,
.g-core-image-corp-container .g-crop-image-box .g-crop-image-principal {
  position: relative;
}

.g-crop-image-principal{
  overflow: hidden;
  background-color: #fff;
  background-image: -webkit-linear-gradient(bottom left, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%, #efefef),-webkit-linear-gradient(bottom left, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%, #efefef);
  background-image: -moz-linear-gradient(bottom left, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%, #efefef),-moz-linear-gradient(bottom left, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%, #efefef);
  background-image: -o-linear-gradient(bottom left, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%, #efefef),-o-linear-gradient(bottom left, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%, #efefef);
  background-image: linear-gradient(to top right, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%, #efefef),linear-gradient(to top right, #efefef 25%, transparent 25%, transparent 75%, #efefef 75%, #efefef);
  background-position: 0 0,10px 10px;
  -webkit-background-size: 21px 21px;
  background-size: 21px 21px;
}
.image-aside{
  overflow: hidden;
  position: absolute;
  right: 30px;
  left:30px;
  top:70px;
  bottom:40px;
  text-align: center;
}
.image-aside .image-wrap{
  position: absolute;
  left: 0;
  top: 0;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  box-shadow: 0 3px 5px -2px rgba(0,0,0,.25);
  background-size: cover;
}
.image-mask{
  position: absolute;
  left: 0;
  top: 0;
  width:100%;
  height: 100%;
}
.image-mask .mask {
  position: absolute;
  background-color: rgba(255,255,255,.6);
}
.crop-box{
  z-index: 2000;
  box-sizing: border-box;
  position: absolute;
  background: none;
  cursor: move;
  width:100px;
  height: 100px;
  border:1px solid rgba(255,255,255, .95);
}
.crop-box:after,
.crop-box:before{
  content: '';
  display: block;
  opacity: 0;
  position: absolute;
  left: 33.3333%;
  top: 0;
  width: 33.334%;
  height: 100%;
  background-color: transparent;
  border-color: rgba(255,255,255,.7);
  border-style: solid;
  border-width: 0;
}
.crop-box:active::before,
.crop-box:active::after{
  opacity: 1;
}
.crop-box:before{
  border-left-width: 1px;
  border-right-width: 1px;
}
.crop-box:after{
  top: 33.3333%;
  left: 0;
  height: 33.3334%;
  width: 100%;
  border-top-width: 1px;
  border-bottom-width: 1px;
}
.crop-box .g-resize{
  display: inline-block;
  z-index: 1910;
  position: absolute;
  bottom: -8px;
  right: -8px;
  width: 16px;
  height: 16px;
  cursor: se-resize;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 4px -2px rgba(0,0,0,.25);
}

.g-resize-bar{
   position: absolute;
   bottom: 0px;
   margin: 17px auto;
   height: 6px;
   border-radius: 3px;
   width:200px;
   margin-left: -100px;
   left: 50%;
   background-color: #9cd6fd;
   box-shadow: 0 2px 3px -1px rgba(0,0,0,.3);
 }
 .g-resize-bar .g-resize-highlight{
   position: absolute;
   left: 0;
   top:0;
   height: 6px;
   background-color: #3498db;
   border-radius: 3px;
 }
 .g-resize-bar .circle-btn{
   display: block;
   position: absolute;
   left:0;
   top: -5px;
   width: 14px;
   height: 14px;
   margin-left: -7px;
   background-color: #fff;
   border-radius: 7px;
   box-shadow: 0 2px 3px -2px rgba(0,0,0,.6), 0 -2px 3px -2px rgba(0,0,0,.55);
   border-width: 0;
 }
